{extend name="public/father" /}

{block name='main'}
<div class="layui-card">
    <div class="layui-card-body">

        <form class="layui-form layui-form-pane" method="post" style="margin-top: 10px;">

            <div class="layui-form-item">
                <label class="layui-form-label">用户名</label>
                <div class="layui-input-block">
                    <input type="text" name="username" value="{$data.username}" required lay-verify="required" autocomplete="off" placeholder="用户名" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">密码</label>
                <div class="layui-input-block">
                    <input type="password" name="password" autocomplete="off" placeholder="不修改密码 可以留空" class="layui-input">
                </div>
            </div>

	        <div class="layui-form-item">
		        <label class="layui-form-label">权限</label>
		        <div class="layui-input-block">
			        <input type="radio" name="admin" value="1" title="管理员" {$data.admin == 1 ? 'checked' : ''}>
			        <input type="radio" name="admin" value="2" title="VIP用户"   {$data.admin == 2 ? 'checked' : ''}>
			        <input type="radio" name="admin" value="3" title="代理"   {$data.admin == 3 ? 'checked' : ''}>
			        <input type="radio" name="admin" value="4" title="视频管理"   {$data.admin == 4 ? 'checked' : ''}>
		        </div>
	        </div>

            <div class="layui-form-item">
                <label class="layui-form-label">状态</label>
                <div class="layui-input-block">
                    <input type="checkbox" name="status" value="1" lay-skin="switch" lay-text="启用|禁用" {$data.status == 1 ? 'checked' : ''}>
                </div>
            </div>

            <div class="layui-form-item">
                <div style="text-align: center;">
                    <button class="layui-btn" lay-submit lay-filter="edit">立即提交</button>
                </div>
            </div>

        </form>

    </div>
</div>

<script>
    var editId = "{$data.id|default=0}";
</script>
{/block}
